package cn.tedu.wufl.xcw.adapter.response;

import lombok.Data;

@Data
public class ResultVO {
    private int code;
    private String msg;
    private Object data;

    public ResultVO(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public ResultVO(AppCode appCode,Object data){
        this.code = appCode.getCode();
        this.msg = appCode.getMsg();
        this.data = data;
    }
    public ResultVO(Object data){
        this.code = AppCode.SUCCESS.getCode();
        this.msg = AppCode.SUCCESS.getMsg();
        this.data = data;
    }
}
